# $Id$
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Firmicus <francois.archlinux.org>

pkgname=ttf-junicode
pkgver=0.7.8
pkgrel=3
pkgdesc='Junius-Unicode: a Unicode font targeted at medievalists'
url='http://junicode.sourceforge.net'
license=('custom:OFL')
arch=('any')
depends=('xorg-fonts-encodings' 'xorg-fonts-alias' 'xorg-font-utils' 'fontconfig')
source=("https://downloads.sourceforge.net/junicode/junicode-${pkgver//\./-}.zip"
        'LICENSE')
sha256sums=('7427c32a9383dd1ce485d202f4767b3baa79d4eae3a74b8ff2a10c2d8a84f3d1'
            'ca122f3bda0154f692817450168cb650a7fc59ef96c93582acd2e7a744d464d3')

install=install

package() {
	cd "${srcdir}/junicode"
	install -m755 -d "${pkgdir}/usr/share/fonts/TTF"
	install -m755 -d "${pkgdir}/usr/share/doc/${pkgname}"
	install -m644 fonts/*.ttf "${pkgdir}/usr/share/fonts/TTF"
	install -m644 doc/* "${pkgdir}/usr/share/doc/${pkgname}"
	install -m644 -D ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
